package com.cj.sys.dao.security;

import java.util.Date;

import org.springframework.stereotype.Repository;

import com.cj.common.orm.hibernate.HibernateDao;
import com.cj.sys.entity.security.SysConfig;

@Repository
public class SysConfigDao extends HibernateDao<SysConfig, Long>{
	@Override
	public void save(SysConfig entity) {
		if(entity.getId() == null)
			entity.setCreateTime(new Date());
		super.save(entity);
	}
}
